package com.cxyjy.common.util;

import java.io.File;
import java.io.FileFilter;

/**
 * @Author: jony
 * @Date : 2024/11/19 16:29
 * @VERSION v1.0
 */
public class FileFilterImpl implements FileFilter {
    @Override
    public boolean accept(File pathname){
        if (pathname.isDirectory()){
            return true;
        }

        return pathname.getName().endsWith(".mp4");
    }
}
